import request from '@/utils/request' // 引入封装得axios

// 获取新闻列表
export function getDataList (url) {
    console.log(url)
    return request({
        url: '/web'+url,
        method: 'GET'
    })
}


// 获取新闻列表
export function getDataListByParams (url,params) {
    console.log(url)
    url.replace("*",params.selectstr)
    return request({
        url: '/web'+ url + "%20order%20by%20" + params.orderfield + "%20" + params.orderasc + "/0/" +params.size,
        method: 'GET'
    })
}

